<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@page import="com.lemurian.bankdata.lite.utils.GlobalFunction" %>

<div class="header"><span><span class="ico gray administrator"></span>Form Pengetikan</span>
</div><!-- End header -->	
<div class="content" >
	<s:form name="formBody" id="validation_demo">
	    <s:hidden name="start"/>
	    <s:hidden name="count"/>
	    <s:hidden name="orderBy"/>
	    <s:hidden name="ascDesc"/>
	    <s:hidden name="previousPage"/>
	    <s:hidden name="actionMethod" value="%{actionMethod}"/>
	    <s:hidden name="subaction"/>
	    <s:hidden name="client.id"/>
	    
	    <s:token/>
	
		<!-- Third / Half column-->
		<div class="widgets">
		
		<div class="twoOne">
			<div class="section ">
				<label>Nama Debitur</label>   
				<div> 
				    <s:property value="client.debitur.name"/>
				</div>
			</div>
			
			<!-- <div class="section ">
				<label><s:text name="label.noCertificate"/></label>   
				<div> 
				    <s:property value="client.certificate.number"/>
				</div>
			</div> -->
			
			<div class="section ">
				<label><s:text name="label.documentLocation"/></label>   
				<div> 
				    <s:textfield cssClass="validate[required] text-input large" name="client.documentLocation" labelposition="left" autocomplete="off"/>
				</div>
			</div>
			
			<div class="section ">
				<label><s:text name="label.tboForm"/></label>   
				<div> 
					<s:textarea cols="4" rows="4" cssClass="validate[required] text-input birthday large" name="client.tbo"/>
				</div>
			</div>
			
			<s:if test="clientCertificates != null && clientCertificates.size() > 0">
			<div class="section ">
				<label><s:text name="label.aktaYangDiketik"/><small></small></label>   
				<div>
				<s:iterator value="clientCertificates" status="sequence">
					<s:hidden name="clientCertificates[%{start+#sequence.index}].id" value="%{id}"/>
					<s:property value="%{start+#sequence.index+1}"/>. <s:label value="%{certificateType.name}" cssStyle="width:150px;margin-left:5px;margin-right:20px;"/>
					<s:if test="endTypingDate != null">
						<s:text name="label.endTypeDate"/>&nbsp;:&nbsp;<b><s:date format="dd MMMM yyyy" name="endTypingDate"/></b>
					</s:if>
					<s:else>
					<s:text name="label.endTypeDate"/><s:textfield cssStyle="width:100px;margin-left:10px" type="text" cssClass="text-input birthday large" name="endTypingDates[%{start+#sequence.index}]" autocomplete="off"/>
					</s:else>
					</br></br>
				</s:iterator>
				</div>
			</div>
			</s:if>

			<div class="section last">
	            <div>
	            	<input type="button" onclick="javascript:history.back(1)" class="uibutton special" style="width:100px" value="BACK">
	            	<s:submit action="%{actionMethod}" value="SUBMIT" cssClass="uibutton" cssStyle="width:100px"/> 
	           	</div>
	        </div>
		</div>
		
		</div><!-- End Third / Half column-->
	
	</s:form>

   <!-- clear fix -->
<div class="clear"></div>

</div><!-- End content -->